export interface SkuImageModel {
  id?: number;
  skuId?: number;
  imgName: string;
  imgUrl: string;
  spuImgId: number;
  isDefault: "1" | "0"; // "1": 默认, "0"代表非默认
}
export type SkuImageListModel = SkuImageModel[];

export interface SkuAttrValueModel {
  id?: number;
  skuId?: number;
  attrName?: string;
  valueName?: string;

  attrId: number;
  valueId: number;
}
export type SkuAttrValueListModel = SkuAttrValueModel[];

export interface SkuSaleAttrValueModel {
  id?: number;
  saleAttrId?: number;
  saleAttrName?: string;
  saleAttrValueId: number;
  saleAttrValueName?: string;
  skuId?: number;
  spuId?: number;
}
export type SkuSaleAttrValueListModel = SkuSaleAttrValueModel[];

export interface SkuModel {
  id?: number;
  spuId: number;
  price: number;
  skuName: string;
  skuDesc: string;
  weight: number;
  tmId: number;
  category3Id: number;
  skuDefaultImg: string;
  isSale: 1 | 0; // 0 下架 / 1 在售
  skuImageList: SkuImageListModel;
  skuAttrValueList: SkuAttrValueListModel;
  skuSaleAttrValueList: SkuSaleAttrValueListModel;
}

export type SkuListModel = SkuModel[];

export interface SkuPageListModel {
  records: SkuListModel;
  total: number;
}
